package com.meituan.sdk.model.pms.hotel.commonGethotelconfig;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 获取系统配置
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/hotel/common/gethotelconfig",
    businessId = 57,
    apiVersion = "10016",
    apiName = "common_gethotelconfig",
    needAuth = true
)
public class CommonGethotelconfigRequest implements MeituanRequest<CommonGethotelconfigResponse> {
    /**
    * <p data-diff-id="ct-diff-id-8fea72eb-4f8c-4196-9a8d-68195354ce97">酒店ID</p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-77b14b06-0b3d-4320-b7b4-5d09887c00c4">系统设置编码</p><table data-borderwidth="1" data-diff-id="ct-diff-id-4498f686-4b0a-4c07-9b8d-756e1266bf5a"><tbody><tr data-row-diff-id="ct-tr-diff-id-721157fc-8f3a-4bf6-b986-c03f9230acda"><th data-colwidth="99" width="99" data-cell-diff-id="ct-cell-diff-id-7837ef99-05ce-4bf1-9df3-97ecde64296e"><p data-diff-id="ct-diff-id-1b9e29df-6490-4c5a-87e4-c9b20258c8de">编码</p></th><th data-colwidth="125" width="125" data-cell-diff-id="ct-cell-diff-id-2474a95f-f37c-4c49-8034-3791b720bf5b"><p data-diff-id="ct-diff-id-06af42aa-b7b0-4681-ac49-aba319e68bbb">返回类型</p></th><th data-colwidth="158" width="158" data-cell-diff-id="ct-cell-diff-id-e95f1961-f8f3-4a5e-a38f-e5f0068bed5b"><p data-diff-id="ct-diff-id-13ae2afa-e64b-4249-8636-562bc5c5316d">默认值</p></th><th data-colwidth="158" width="158" data-cell-diff-id="ct-cell-diff-id-9dec5ab7-3a45-449f-b5fa-9935f5f4ff0a"><p data-diff-id="ct-diff-id-ae894bd4-088c-4fc4-bc2b-2bffd14c5699">说明</p></th></tr><tr data-row-diff-id="ct-tr-diff-id-5dd360e6-fc79-47db-b161-4a655059cfbb"><td data-colwidth="99" width="99" data-cell-diff-id="ct-cell-diff-id-b386c218-1f3a-4d31-8ee6-f0c54b4ef388"><p data-diff-id="ct-diff-id-7c6c0e85-407c-456d-b51e-40f379313b2b">Bank</p></td><td data-colwidth="125" width="125" data-cell-diff-id="ct-cell-diff-id-e2c9be65-131a-4666-878d-8b1797c6b9e1"><p data-diff-id="ct-diff-id-61939fa8-f096-456c-82d5-1a39c161e2f5">Array&lt;String&gt;</p></td><td data-colwidth="158" width="158" data-cell-diff-id="ct-cell-diff-id-89f68805-715b-46ef-86b8-f76f5d9ee5b6"><p data-diff-id="ct-diff-id-ce24aa12-e39b-4970-a252-bbbbea4534dd">[]</p></td><td data-colwidth="158" width="158" data-cell-diff-id="ct-cell-diff-id-81566ff5-8f9d-44b5-ad48-be600a9620fc"><p data-diff-id="ct-diff-id-bba7c4a8-dffa-4683-88bf-de81205a1b21">银行卡种类</p></td></tr></tbody></table><p data-diff-id="ct-diff-id-18bfd80f-cba8-487d-b7ba-fdb17f5e88ba"></p>
    */
    @NotBlank(message = "key不能为空")
    @SerializedName("key")
    private String key;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }


    @Override
    public MeituanResponse<CommonGethotelconfigResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<CommonGethotelconfigResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "CommonGethotelconfigRequest{" + "hotelId=" + hotelId + "," + "key=" + key + "}";
    }
}
